#!/usr/bin/python
# -*- coding: UTF-8 -*-

'''
题目：判断101-200之间有多少个素数，并输出所有素数。
'''
 
h = 0
leap = 1
from math import sqrt
from sys import stdout
for m in range(101,201):
    k = int(sqrt(m + 1))
    for i in range(2,k + 1):
        if m % i == 0: #表示非素数
            leap = 0
            break
    if leap == 1:
        print '%-4d' % m #格式化，-表示左对齐。宽度为4
        h += 1
        if h % 10 == 0:
            print ''
    leap = 1
print 'The total is %d' % h

